package o;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import com.huawei.gamebox.plugin.gameservice.bean.GetGameAuthSignExtraBody;

public class eyv extends eyu {
    public static final String APIMETHOD = "client.gs.getGameAuthSign";
    private GetGameAuthSignExtraBody extraBody;
    private String extraBody_;
    private long gamePopTime_;
    private long gameboxPopTime_;

    public eyv(GameInfo gameInfo) {
        super(gameInfo);
    }

    public static eyv ˎ(GameInfo gameInfo, ccm o_ccm, String str) {
        eyv o_eyv = new eyv(gameInfo);
        o_eyv.setMethod_(APIMETHOD);
        o_eyv.targetServer = "jxs.url";
        o_eyv.setStoreApi("gbClientApi");
        JsonBean ˏ = epk.ˏ();
        if (o_ccm != null) {
            ˏ.ˋ(o_ccm.ॱ());
            ˏ.ˊ(o_ccm.ˏ());
            ˏ.ॱ(o_ccm.ˎ());
            ˏ.ˎ(o_ccm.ʽ());
            o_eyv.ˊ(ezq.ˏ().ˎ("game.realName.popTime", o_ccm.ˊ()));
            o_eyv.ˋ(ezq.ˏ().ˎ("higame.realName.popTime", o_ccm.ˊ()));
        }
        o_eyv.ॱ(ˏ);
        o_eyv.extraBody = new GetGameAuthSignExtraBody(o_eyv.ˏ(), str);
        return o_eyv;
    }

    public void ॱ(String str) {
        this.extraBody_ = str;
    }

    public void ˊ(long j) {
        this.gamePopTime_ = j;
    }

    public void ˋ(long j) {
        this.gameboxPopTime_ = j;
    }

    protected void onSetValue() {
        super.onSetValue();
        if (this.extraBody != null) {
            try {
                ॱ("json=" + this.extraBody.toJson());
            } catch (Exception e) {
                Logger.e(cvs.TAG, "onSetValue error ");
            }
        }
    }
}
